/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.smg.community.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.smg.community.model.*;
import com.smg.community.dao.*;
import com.smg.community.service.*;
import com.smg.community.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


public class SmgCarBrand extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SmgCarBrand";
	public static final String ALIAS_CAR_BRAND_ID = "carBrandId";
	public static final String ALIAS_CAR_BRAND_NAME = "carBrandName";
	public static final String ALIAS_LOGO_IMAGE = "logoImage";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * carBrandId       db_column: carBrandId 
     */	
	
	private java.lang.Integer carBrandId;
    /**
     * carBrandName       db_column: carBrandName 
     */	
	private java.lang.String carBrandName;
    /**
     * logoImage       db_column: logoImage 
     */	
	private java.lang.String logoImage;
	//columns END
	
	private List<SmgCarModels> modelList;

	public List<SmgCarModels> getModelList() {
		return modelList;
	}

	public void setModelList(List<SmgCarModels> modelList) {
		this.modelList = modelList;
	}

	public SmgCarBrand(){
	}

	public SmgCarBrand(
		java.lang.Integer carBrandId
	){
		this.carBrandId = carBrandId;
	}

	public void setCarBrandId(java.lang.Integer value) {
		this.carBrandId = value;
	}
	
	public java.lang.Integer getCarBrandId() {
		return this.carBrandId;
	}
	public void setCarBrandName(java.lang.String value) {
		this.carBrandName = value;
	}
	
	public java.lang.String getCarBrandName() {
		return this.carBrandName;
	}
	public void setLogoImage(java.lang.String value) {
		this.logoImage = value;
	}
	
	public java.lang.String getLogoImage() {
		return this.logoImage;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("CarBrandId",getCarBrandId())
			.append("CarBrandName",getCarBrandName())
			.append("LogoImage",getLogoImage())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getCarBrandId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SmgCarBrand == false) return false;
		if(this == obj) return true;
		SmgCarBrand other = (SmgCarBrand)obj;
		return new EqualsBuilder()
			.append(getCarBrandId(),other.getCarBrandId())
			.isEquals();
	}
}

